<?php echo $this->Html->script(array(HOST.'/search'),$options = array('allowCache'=>false,'safe'=>false,'inline'=>false));?>
<div class="container container_category_4 black">
	<?php echo $this->Form->create('ViewOffer',array('url'=>array('controller'=>'offers','action'=>'search')));?>

	<div class="category_grid_2 offer-type-radio">
		<?php 
			$selected = (isset($this->data['ViewOffer']['transakcja_id'])) ? $this->data['ViewOffer']['transakcja_id'] : 1;
			$options=array('1'=>'Sprzedaż','2'=>'Wynajem');
			$attributes=array('legend'=>false,'hiddenField'=>false,'value'=>$selected);
			echo $this->Form->radio('transakcja_id',$options,$attributes);
		?>
	</div>
	
	<div class=" category_grid_2 offer-type-radio">
		<?php 
			$selected = (isset($this->data['ViewOffer']['rynek'])) ? $this->data['ViewOffer']['rynek'] : 1;
			$options=array('1'=>'Wtórny','0'=>'Pierwotny');
			$attributes=array('legend'=>false,'hiddenField'=>false,'value'=>$selected);
			echo $this->Form->radio('rynek',$options,$attributes);
		?>
	</div>
		
	<div class="clear">&nbsp;</div>
	
	<div class='category_grid_1  category_suffix_3'>
		<?php echo $this->Form->input('typ_id',array('label'=>__('Rodzaj nieruchomości',true),'options'=>$this->Lex->typy(),'empty'=>' - wybierz - ')); ?>
	</div>
	<div class='category_grid_1 category_suffix_2 ceny'>
		<?php echo $this->Form->input('cena_od',array('label'=>__('cena od',true),'options'=>array(1=>'1',50000=>'50 000',100000=>'100 000',150000=>'150 000',200000=>'200 000',250000=>'250 000',300000=>'300 000',350000=>'350 000',400000=>'400 000',450000=>'450 000',500000=>'500 000'),'empty'=>array(1=>' - wybierz - '))); ?>
		<?php echo $this->Form->input('cena_do',array('label'=>__('cena do',true),'options'=>array(50000=>'50 000',100000=>'100 000',150000=>'150 000',200000=>'200 000',250000=>'250 000',300000=>'300 000',350000=>'350 000',400000=>'400 000',450000=>'450 000',500000=>'500 000'),'empty'=>' - wybierz - ')); ?>
	</div>
	<div class='category_grid_1 category_suffix_1 powierzchnia'>
		<?php echo $this->Form->input('powierzchnia_od',array('label'=>__('powierzchnia ',true),'options'=>array(10=>'10',25=>'25',30=>'30',35=>'35',40=>'40',45=>'45',50=>'50',55=>'55',60=>'60',65=>'65',70=>'70',75=>'75',80=>'80',85=>'85',90=>'90',95=>'95',100=>'100',120=>'120',140=>'140',160=>'160',180=>'180',200=>'200',250=>'250',300=>'300'),'empty'=>array(1=>' - wybierz - '))); ?>
		<?php echo $this->Form->input('powierzchnia_do',array('label'=>__('(od-do)',true),'options'=>array(10=>'10',25=>'25',30=>'30',35=>'35',40=>'40',45=>'45',50=>'50',55=>'55',60=>'60',65=>'65',70=>'70',75=>'75',80=>'80',85=>'85',90=>'90',95=>'95',100=>'100',120=>'120',140=>'140',160=>'160',180=>'180',200=>'200',250=>'250',300=>'300'),'empty'=>' - wybierz - ')); ?>
	</div>
	<div class='category_grid_1 category_suffix_0'>
		<?php echo $this->Form->input('slowa_kluczowe',array('label'=>__('Słowa kluczowe',true))); ?>
	</div>
	<div class="input text">
		<?php echo $this->Form->submit(__('Szukaj',true))?>
	</div>
	<?php echo $this->Form->end();?>
	<div class="clear">&nbsp;</div>
</div>